/**
 * @author MIAO
 * Created on 2011-10-10
 * For more information, please visit:ismiao.com
 */
package com.ismiao.designPattern.Observer.example2;

import java.util.Observable;
import java.util.Observer;

public class Alarm implements Observer {
	public void takeAlarm(){
		System.out.println("嘀嘀嘀...水已经烧开");
	}
	@Override
	public void update(Observable o, Object arg) {
		takeAlarm();

	}

}
